package org.zhangchao.poi.excel.process;

import java.io.File;
import java.io.InputStream;

import org.apache.poi.ss.usermodel.Row;
import org.zhangchao.poi.excel.common.ExcelEnum;
import org.zhangchao.poi.excel.common.NumberSystem;

public class MyExcelProcessor extends ExcelProcessor {

	public MyExcelProcessor(File file, ExcelEnum type) throws Exception {
		super(file, type);
	}
	
	public MyExcelProcessor(File file) throws Exception {
		super(file);
	}

	public MyExcelProcessor(InputStream is, ExcelEnum type) throws Exception {
		super(is, type);
	}

	public MyExcelProcessor(String fileName) throws Exception {
		super(fileName);
	}

	@Override
	public void processRow(Row row) {
		System.out.print("sheet---" + row.getSheet().getSheetName() + "---");
		for (int i = 0; i < row.getLastCellNum(); i++) {
			System.out.print("[" + row.getLastCellNum() + ","
					+  NumberSystem.ToNumberSystem26(row.getCell(i).getColumnIndex() + 1) + ","
					+ row.getCell(i).getStringCellValue() + "]");
		}
		System.out.println();
	}

}
